<template>
  <div class="weChat_item">
    <img src="../../../../static/image/userInfo/fenxiangweima.png" alt="" />
    <span>打开微信,扫一扫</span>
    <button @click="bindWeChat">绑定</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      controlWeChat: false,
    };
  },
  methods: {
    bindWeChat() {
      this.$emit("isControlWeChat", this.controlWeChat);
    },
  },
};
</script>

<style lang="less" scoped>
.weChat_item {
  padding: 0 30px 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
  img {
    width: 160px;
    height: 160px;
    span {
      font-size: 14px;
      margin: 10px auto;
    }
  }
  button {
    width: 100%;
    height: 40px;
    background-color: #ccc;
    margin-top: 20px;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
  }
}
</style>
